﻿using System;

namespace Entities
{
    [Serializable]
    public class ChiTietCapNhatGiaHangHoa
    {
        private int chiTietCapNhatGiaHangHoaID;
        private string maCapNhatGiaHangHoa;
        private string maHangHoa;
        private string tenHangHoa;
        private string giaNhap;
        private string giaBanBuon;
        private string giaBanLe;
        private bool deleted;
        public ChiTietCapNhatGiaHangHoa()
        { }
        public ChiTietCapNhatGiaHangHoa(int chiTietCapNhatGiaHangHoaID, string maCapNhatGiaHangHoa, string maHangHoa, string tenHangHoa, string giaNhap, string giaBanBuon, string giaBanLe, bool deleted)
        {
            this.chiTietCapNhatGiaHangHoaID = chiTietCapNhatGiaHangHoaID;
            this.maCapNhatGiaHangHoa = maCapNhatGiaHangHoa;
            this.maHangHoa = maHangHoa;
            this.tenHangHoa = tenHangHoa;
            this.giaNhap = giaNhap;
            this.giaBanBuon = giaBanBuon;
            this.giaBanLe = giaBanLe;
            this.deleted = deleted;
        }
        public int ChiTietCapNhatGiaHangHoaID
        {
            get { return this.chiTietCapNhatGiaHangHoaID; }
            set
            {
                this.chiTietCapNhatGiaHangHoaID = value;
            }
        }
        public string MaCapNhatGiaHangHoa
        {
            get { return this.maCapNhatGiaHangHoa; }
            set
            {
                this.maCapNhatGiaHangHoa = value;
            }
        }
        public string MaHangHoa
        {
            get { return this.maHangHoa; }
            set
            {
                this.maHangHoa = value;
            }
        }
        public string TenHangHoa
        {
            get { return this.tenHangHoa; }
            set { this.tenHangHoa = value; }
        }
        public string GiaNhap
        {
            get { return this.giaNhap; }
            set
            {
                this.giaNhap = value;
            }
        }
        public string GiaBanBuon
        {
            get { return this.giaBanBuon; }
            set
            {
                this.giaBanBuon = value;
            }
        }
        public string GiaBanLe
        {
            get { return this.giaBanLe; }
            set
            {
                this.giaBanLe = value;
            }
        }
        public bool Deleted
        {
            get { return this.deleted; }
            set { this.deleted = value; }
        }

        public override bool Equals(Object obj)
        {
            ChiTietCapNhatGiaHangHoa me = (ChiTietCapNhatGiaHangHoa)obj;
            bool ret = this.ChiTietCapNhatGiaHangHoaID.Equals(me.ChiTietCapNhatGiaHangHoaID);
            return ret;
        }

    }
}